@isTest
private class WorkOrderAttachmentUploadControllerTest {
    static testMethod void testMethod1() {



        Account acc = TestUtils.createAccount();
        insert acc;

        Case ca = new Case();
        ca.AccountId = acc.Id;
        insert ca;

        //新建工单
        WorkOrder__c wo = new WorkOrder__c();
        wo.Case__c = ca.Id;
        insert wo;


        
 		PageReference page = new PageReference('/apex/WorkOrderComfirmAttachment?id=' + wo.Id +'&fileValue=agc,DDDDXXDDS&fileFormat=.txt&fileName=test' );
        System.Test.setCurrentPage(page);
        WorkOrderAttacmentUploadController wau = new WorkOrderAttacmentUploadController(new ApexPages.StandardController(wo));

        wau.woId = wo.Id;
        wau.init();
        wau.save();

    }
}